package groovyx.twitter
/**
 * Created by IntelliJ IDEA.
 * User: alleon
 * Date: May 6, 2008
 * Time: 2:19:54 PM
 * To change this template use File | Settings | File Templates.
 */
class QueryStringOtherTest extends GroovyTestCase {
    def queryString

    void setUp(){
        queryString = new QueryString([name:"tog"])
    }

    void testConstructor(){
        assert queryString != null
    }

    void testAdd(){
        assertEquals queryString.params.size(), 1
    }

    void testToString(){
        queryString.add("sex", "male")
        queryString.params.put("id", 69)
        assertEquals queryString.toString(), "name=tog&sex=male&id=69"
    }
}
